Fix `cargo test --doc` not testing examples
authorMikkel Kroman <mk@uplink.io>
Fri, 13 May 2016 05:22:19 +0000 (07:22 +0200)
committerMikkel Kroman <mk@uplink.io>
Fri, 13 May 2016 05:22:19 +0000 (07:22 +0200)
src/cargo/ops/cargo_test.rs

index 8548087986c20816424a27c906107cb98f32997e..42e365f6ae736d3ed50c8c42138a0466ea9de500 100644 (file)
@@ -20,7 +20,7 @@ pub fn run_tests(manifest_path: &Path,
         return Ok(None)
     }
     let mut errors = if options.only_doc {
-        Vec::new()
+        try!(run_doc_tests(options, test_args, &compilation))
     } else {
         try!(run_unit_tests(options, test_args, &compilation))
     };